package org.example.leetcode.core.service;

import org.example.leetcode.common.domain.CodeDO;
import org.example.leetcode.common.domain.CodeResult;
import org.example.leetcode.common.pojo.GlobalResponse;
import org.example.leetcode.common.pojo.PageCond;
import org.example.leetcode.common.pojo.PageResult;
import org.example.leetcode.core.domain.DailyQuestion;
import org.example.leetcode.core.domain.TQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.leetcode.core.domain.UserQuestionLog;
import org.example.leetcode.core.dto.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhc
 * @since 2024-02-25
 */
public interface TQuestionService extends IService<TQuestion> {
    PageResult<QuestionPageVO> page(QuestionPageCond questionPageCond);

    TQuestion getQuestionInfo(String titleSlug);

    void add(TQuestionAddDto tQuestion);

    TQuestionAddDto getManagerQuestionInfo(String titleSlug);

    void delete(String titleSlug);

    CodeResult executeCode(CodeDO codeDO);

    List<QuestionPageVO> queryRecommend(Integer limit);

    PageResult<DailyHotQuestion> getHot(PageCond pageCond);

    List<DailyQuestionVo> getCurrentQuestion();

    List<QuestionPageVO> queryRecommendItem(Integer valueOf);

    UserQuestionLogVo queryQuestionLog(String title,String language);
}
